package com.nbsaas.boot.merchant.rest.convert;

import com.nbsaas.boot.merchant.data.entity.MerchantSettlement;
import com.nbsaas.boot.merchant.api.domain.simple.MerchantSettlementSimple;

import com.nbsaas.boot.rest.api.Converter;

/**
* 商家结算-列表对象转换器
*/

public class MerchantSettlementSimpleConvert implements Converter<MerchantSettlementSimple, MerchantSettlement> {




@Override
public MerchantSettlementSimple convert(MerchantSettlement source) {
    MerchantSettlementSimple result = new MerchantSettlementSimple();

                result.setSettlementNo(source.getSettlementNo());
                result.setEndDate(source.getEndDate());
                result.setOrderCount(source.getOrderCount());
                result.setSettlementPeriod(source.getSettlementPeriod());
                result.setRemark(source.getRemark());
                result.setAddDate(source.getAddDate());
                result.setSettlementUser(source.getSettlementUser());
                result.setOrderAmount(source.getOrderAmount());
                result.setMerchantId(source.getMerchantId());
                result.setSettlementStatus(source.getSettlementStatus());
                result.setSettlementTime(source.getSettlementTime());
                result.setSettlementAmount(source.getSettlementAmount());
                result.setId(source.getId());
                result.setStartDate(source.getStartDate());
                result.setCommissionAmount(source.getCommissionAmount());
                result.setRefundAmount(source.getRefundAmount());
                result.setLastDate(source.getLastDate());


    return result;
}

}